package com.fancy.common.exception;

import java.util.Locale;

import com.fancy.common.constant.ResponseConstants;
import com.fancy.common.constant.i18n.BaseI18n;

/**
 * 参数错误。特指从请求方显式传入的参数错误，如参数缺失、参数格式不正确、不在取值范围等。
 * 
 * @author xinfeng.hu 2013-3-13下午12:15:34
 * @version 1.0.0
 * @category 杭州广桥网络技术有限公司(商业先知)
 */
public class ServiceErrorException extends BaseException {

	/**
	 * 序列化版本号
	 */
	private static final long serialVersionUID = 951860079180937477L;

	public ServiceErrorException() {
		super(ResponseConstants.SC_INTERNAL_SERVER_ERROR);
	}

	public ServiceErrorException(final String message) {
		super(message);
	}
	
	public ServiceErrorException(final int errorCode) {
		super(errorCode);
	}

	public ServiceErrorException(final int errorCode, final BaseI18n messageCode, final Object... arg) {
		super(errorCode, messageCode, arg);
	}

	public ServiceErrorException(final int errorCode, final BaseI18n messageCode, final Locale locale, final Object... arg) {
		super(errorCode, messageCode, locale, arg);
	}
}
